<template>
	<view class="swiper-item"
		:style="{'z-index':(currentIndex===dataIndex)?1:(-dataIndex),'opacity':(currentIndex===dataIndex)?1:0}">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: 'mSwiperItem',
		props: {
			dataIndex: {
				type: Number,
				default: 0
			},
			currentIndex: {
				type: Number,
				default: 0
			},

		},
		data() {
			return {}
		},


	}
</script>

<style lang="scss" scoped>
	.swiper-item {
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		right: 0;
		width: 100%;
		height: 100%;
		background-color: black;
		overflow: hidden;

	}

	::v-deep {
		::-webkit-scrollbar {
			display: none !important;
		}
	}
</style>